package com.zxy.ziems.server.monitor.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Null;
import lombok.Data;

/**
 * @Copyright (C),
 * @ClassName: AlarmRuleAddParam
 * @Author: yanzhiwei
 * @Description:
 * @Date: 2024/4/10 16:43
 */
@Data
public class MonitorGroupAddDTO {
    /**
     * 监控分组ID
     */
    @Null(message = "新增监控分组，ID必须为空", groups = Add.class)
    @NotBlank(message = "监控分组ID不能为空", groups = {Update.class, Select.class})
    private String id;

    /**
     * 监控分组名称
     */
    @NotBlank(message = "监控分组名称不能为空", groups = {Add.class})
    private String monitorGroupName;

    /**
     * 告警类型
     */
    private Integer defaultDisplay;


    public interface Add {
    }

    public interface Update {
    }

    public interface Select {
    }
}
